package thomas.javase.date;

import org.junit.Test;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class DateTest {

    @Test
    public void testDateFormat1(){
        LocalDate date = LocalDate.parse("2018-10-30", DateTimeFormatter.ofPattern("uuuu-MM-dd"));
        System.out.println(date);
    }
}
